package org.csmzxy.class2333;

public class Work02Person{
    private String name;
    private String role;
    private String subject;

    public Work02Person(String name, String role) {
        this.name = name;
        this.role = role;
    }

    public Work02Person(String name, String role, String subject) {
        this.name = name;
        this.role = role;
        this.subject = subject;
    }
    public void print(){
        System.out.print("姓名：" + name + " ");
        System.out.print("身份：" + role + " ");
        System.out.println("教学科目：" + subject);
    }
}